package a.e.b.a;

import a.e.a.gb;
import a.e.a.z;
import a.e.b.b.t;
import a.e.b.c.cb;
import a.e.b.c.o;
import a.j.ld;
import a.j.od;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

public class q
  extends i
{
  static Class c;
  public static int j;
  
  public String a()
  {
    return "ShapeNode";
  }
  
  public String b()
  {
    return "http://www.yworks.com/xml/graphml";
  }
  
  public Class d()
  {
    if (!i.i) {}
    return c == null ? (q.c = b("a.j.od")) : c;
  }
  
  public void a(ld paramld, cb paramcb, o paramo)
    throws a.e.b.c.a
  {
    super.a(paramld, paramcb, paramo);
    od localod = (od)paramld;
    paramcb.a("Shape", "http://www.yworks.com/xml/graphml").c("type", a(localod, paramo)).b();
    if (!i.i)
    {
      if (localod.Y())
      {
        paramcb.a("DropShadow", "http://www.yworks.com/xml/graphml").a("offsetX", localod.X()).a("offsetY", localod.W());
        y.a(paramcb, "color", localod.V());
      }
    }
    else {
      paramcb.b();
    }
  }
  
  protected String a(od paramod, o paramo)
  {
    return gb.a(paramod.U());
  }
  
  public void a(ld paramld, Node paramNode, t paramt)
    throws a.e.b.b.a
  {
    boolean bool = i.i;
    int k = i.h;
    od localod = (od)paramld;
    super.a(localod, paramNode, paramt);
    NodeList localNodeList = paramNode.getChildNodes();
    if (localNodeList != null)
    {
      int i = 0;
      label292:
      do
      {
        if (i >= localNodeList.getLength()) {
          break;
        }
        Node localNode1 = localNodeList.item(i);
        if (!bool)
        {
          if (localNode1.getNodeType() == 1)
          {
            String str = localNode1.getLocalName();
            NamedNodeMap localNamedNodeMap;
            Node localNode2;
            if (!bool) {
              if ("Shape".equals(str))
              {
                localNamedNodeMap = localNode1.getAttributes();
                localNode2 = localNamedNodeMap.getNamedItem("type");
                if (bool) {
                  continue;
                }
                if (localNode2 == null) {
                  break label292;
                }
                localod.b(a(localNode2.getNodeValue(), paramt));
                if (bool) {
                  continue;
                }
                if (k == 0) {
                  break label292;
                }
              }
            }
            if (bool) {
              continue;
            }
            if ("DropShadow".equals(str))
            {
              localNamedNodeMap = localNode1.getAttributes();
              localNode2 = localNamedNodeMap.getNamedItem("offsetX");
              if (!bool)
              {
                if (localNode2 != null) {
                  localod.d(Byte.parseByte(localNode2.getNodeValue()));
                }
                localNode2 = localNamedNodeMap.getNamedItem("offsetY");
              }
              if (!bool)
              {
                if (localNode2 != null) {
                  localod.c(Byte.parseByte(localNode2.getNodeValue()));
                }
                localNode2 = localNamedNodeMap.getNamedItem("color");
                if (bool) {
                  continue;
                }
              }
              if (localNode2 != null) {
                localod.f(y.a(localNode2.getNodeValue()));
              }
            }
          }
          i++;
        }
      } while (k == 0);
    }
  }
  
  protected byte a(String paramString, t paramt)
  {
    return z.g(paramString);
  }
  
  static Class b(String paramString)
  {
    try
    {
      return Class.forName(paramString);
    }
    catch (ClassNotFoundException localClassNotFoundException)
    {
      throw new NoClassDefFoundError(localClassNotFoundException.getMessage());
    }
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.e.b.a.q
 * JD-Core Version:    0.7.0.1
 */